package fachlogik;

import java.util.ArrayList;
import java.util.List;

public class Haendler
{
	private int id;
	private String name;
	private List<Produkt> angebot = new ArrayList<>();
	
	
	public void neuImAngebot(Produkt p)
	{
		if (!angebot.contains(p))
		{
			angebot.add(p);
			p.setAnbieter(this);
		}
	}
	
	public int getId()
	{
		return id;
	}
	
	public void setId(int id)
	{
		this.id = id;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public List<Produkt> getAngebot()
	{
		return angebot;
	}
	
	

}
